import Vue from 'vue'
import VueRouter from 'vue-router'
import face from '../views/face/face.vue'
import layout from '../views/layout/layout.vue'
Vue.use(VueRouter)

const routes = [{ path: '/', redirect: '/layout' }, {
    path: '/face',
    name: 'face',
    component: face
}, {
    path: '/layout',
    name: 'layout',
    component: layout
}]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router